package com.nettools;

import com.fileoperation.user.UserInfo;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;
import java.util.UUID;

/**
 * Created by Administrator on 2016-12-25.
 */

public class NetTools {


    public static String generateObjectKey(String fileName){
        int pointIndex = fileName.indexOf(".");
        String suffix = fileName.substring(pointIndex, fileName.length());
        String newFileName = UUID.randomUUID().toString() + suffix;
        return Constants.PHOTO_FOLDER + newFileName;
    }

    public static String getTwodUrl(){
        return "http://img0.ph.126.net/jYVjq2_AjyL8auLdEO8kvA==/6597349042612023444.jpg";
//        return Constants.TWO_D_ADDRESS + "?access_token=" + UserInfo.getInstance().getAccessToken();
    }

}
